package com.gohome.gohomechat.model.entify;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by dllo on 16/3/1.
 */
public class Notice implements Parcelable{
    private String head;
    private String userName;
    // 添加理由
    private String reason;
    // 时间
    private long time;
    // 未验证,已同意等状态
    private int messageStatus;
    //群id
    private String groupId;
    //群名称
    private String groupName;

    public Notice() {
    }

    protected Notice(Parcel in) {
        head = in.readString();
        userName = in.readString();
        reason = in.readString();
        time = in.readLong();
        messageStatus = in.readInt();
        groupId = in.readString();
        groupName = in.readString();
    }

    public static final Creator<Notice> CREATOR = new Creator<Notice>() {
        @Override
        public Notice createFromParcel(Parcel in) {
            return new Notice(in);
        }

        @Override
        public Notice[] newArray(int size) {
            return new Notice[size];
        }
    };

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public int getMessageStatus() {
        return messageStatus;
    }

    public void setMessageStatus(int messageStatus) {
        this.messageStatus = messageStatus;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(head);
        dest.writeString(userName);
        dest.writeString(reason);
        dest.writeLong(time);
        dest.writeInt(messageStatus);
        dest.writeString(groupId);
        dest.writeString(groupName);
    }
}
